import request from '@/utils/request'



/**SKU耗材采购确认收货 */
export function receiveConsumable(data) {
  return request({
    url: '/distribution/skuConsumablePurchase/receiveConsumable',
    method: 'post',
    data: data
  })
}


/**新增商品SKU耗材采购 */
export function addSkuConsumablePurchase(data) {
  return request({
    url: '/distribution/skuConsumablePurchase',
    method: 'post',
    data: data
  })
}

/**查询耗材编号 */
export function getCesNo() {
  return request({
    url: '/distribution/skuConsumablePurchase/getCesNo',
  })
}


// 查询商品SKU耗材采购列表
export function listSkuConsumablePurchase(query) {
  return request({
    url: '/distribution/skuConsumablePurchase/list',
    method: 'get',
    params: query
  })
}

// 查询商品SKU耗材采购详细
export function getSkuConsumablePurchase(id) {
  return request({
    url: '/distribution/skuConsumablePurchase/' + id,
    method: 'get'
  })
}



// 修改商品SKU耗材采购
export function updateSkuConsumablePurchase(data) {
  return request({
    url: '/distribution/skuConsumablePurchase',
    method: 'put',
    data: data
  })
}

// 删除商品SKU耗材采购
export function delSkuConsumablePurchase(id) {
  return request({
    url: '/distribution/skuConsumablePurchase/' + id,
    method: 'delete'
  })
}
